package com.megvii.koala.event;

import de.greenrobot.event.EventBus;

/**
 * Created by linyue on 15/12/27.
 */
public class EventAPI
{
    public static void sendImageSaveEvent(byte[] imageData)
    {
        EventBus.getDefault().post(new ImageSaveEvent(imageData));
    }

    public static void sendExitImageEditModeEvent()
    {
        EventBus.getDefault().post(new ExitImageEditModeEvent());
    }

    public static void sendNotifyVisitorUpdateEvent(String visitorId)
    {
        EventBus.getDefault().post(new NotifyVisitorUpdateEvent(visitorId));
    }
}
